package com.tywj.buscustomerapp.presenter.contract;

import com.amap.api.maps.model.LatLng;
import com.tywj.buscustomerapp.model.bean.SearchUtilsBean;
import com.tywj.buscustomerapp.model.bean.StationBean;
import com.tywj.buscustomerapp.model.bean.TravelLineBean;
import com.tywj.buscustomerapp.presenter.BasePresenter;

import java.util.HashMap;
import java.util.List;

public class SearchContract {

    public interface SearchModel{
        HashMap<SearchUtilsBean,SearchUtilsBean> getStations(String cityId, LatLng start, LatLng end);
        List<TravelLineBean> getLineById(String lineId);
    }

    public interface SearchView{
        void showSearchResoult(List<SearchUtilsBean> beans);
        void startLoading();
        void closeLoading();
        void showError(String message);
    }

    public interface SearchPersenter extends BasePresenter {
        void startGetStation(String cityId, LatLng start, LatLng end);
    }
}
